#include <stdio.h>

struct Box {
    double length;
    double width;
    double height;

};
void printVolume(struct Box *);

int main(){

    struct Box box;
    struct Box *ptrbox = &box;
    printf("请输入长度：");
    scanf("%lf", &box.length);
    printf("请输入宽度：");
    scanf("%lf", &box.width);
    printf("请输入高度：");
    scanf("%lf", &box.height);
    printVolume(ptrbox);

    return 0;
}

void printVolume(struct Box *box){
    printf("体积是:%lf\n", box->width * box->length * box->height);

    return;
};